package com.ruoyi.system.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 易达电表数据对象 yd_meter_data
 * 
 * @author ruoyi
 * @date 2024-01-15
 */
public class YdMeterData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 设备ID/电表编号 */
    @JsonProperty("deviceId")
    @Excel(name = "设备ID/电表编号")
    private String deviceId;

    /** 采集时间 */
    @JsonProperty("collectTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date collectTime;

    /** 直流电流 */
    @JsonProperty("dcCurrent")
    @Excel(name = "直流电流")
    private Float dcCurrent;

    /** 直流电压 */
    @JsonProperty("dcVoltage")
    @Excel(name = "直流电压")
    private Float dcVoltage;

    /** 直流炉阻 */
    @JsonProperty("dcResistance")
    @Excel(name = "直流炉阻")
    private Float dcResistance;

    /** 有功功率 */
    @JsonProperty("activePower")
    @Excel(name = "有功功率")
    private Float activePower;

    /** 炉号 */
    @JsonProperty("furnaceNo")
    @Excel(name = "炉号")
    private Integer furnaceNo;

    /** 单炉电量 */
    @JsonProperty("furnaceEnergy")
    @Excel(name = "单炉电量")
    private Integer furnaceEnergy;

    /** 数据状态：1-正常，0-异常 */
    @JsonProperty("status")
    @Excel(name = "数据状态", readConverterExp = "1=正常,0=异常")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    
    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }
    
    public void setDcCurrent(Float dcCurrent) 
    {
        this.dcCurrent = dcCurrent;
    }

    public Float getDcCurrent() 
    {
        return dcCurrent;
    }
    
    public void setDcVoltage(Float dcVoltage) 
    {
        this.dcVoltage = dcVoltage;
    }

    public Float getDcVoltage() 
    {
        return dcVoltage;
    }
    
    public void setDcResistance(Float dcResistance) 
    {
        this.dcResistance = dcResistance;
    }

    public Float getDcResistance() 
    {
        return dcResistance;
    }
    
    public void setActivePower(Float activePower) 
    {
        this.activePower = activePower;
    }

    public Float getActivePower() 
    {
        return activePower;
    }
    
    public void setFurnaceNo(Integer furnaceNo) 
    {
        this.furnaceNo = furnaceNo;
    }

    public Integer getFurnaceNo() 
    {
        return furnaceNo;
    }
    
    public void setFurnaceEnergy(Integer furnaceEnergy) 
    {
        this.furnaceEnergy = furnaceEnergy;
    }

    public Integer getFurnaceEnergy() 
    {
        return furnaceEnergy;
    }
    
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("collectTime", getCollectTime())
            .append("dcCurrent", getDcCurrent())
            .append("dcVoltage", getDcVoltage())
            .append("dcResistance", getDcResistance())
            .append("activePower", getActivePower())
            .append("furnaceNo", getFurnaceNo())
            .append("furnaceEnergy", getFurnaceEnergy())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}